[DaleSeo] WEEK 02 Solutions#2675
Merged
Merged
Conversation
Contributor
📊 DaleSeo 님의 학습 현황이번 주 제출 문제
누적 학습 요약
문제 풀이 현황
🤖 이 댓글은 GitHub App을 통해 자동으로 작성되었습니다. 🔢 API 사용량 (gpt-5-nano)
|
Contributor
There was a problem hiding this comment.
🏷️ 알고리즘 패턴 분석
- 패턴: Two Pointers, Sorting
- 설명: 주어진 코드는 정렬 후 두 포인터(low, high)를 이용해 가능한 3합을 찾아내는 구조로, 중복 제거를 위한 건너뛰기 로직도 포함되어 있습니다. 이는 Two Pointers 패턴의 대표적인 예시이며, 정렬 후 탐색 공간을 절약하는 전략입니다.
📊 시간/공간 복잡도 분석
| 유저 분석 | 실제 분석 | 결과 | |
|---|---|---|---|
| Time | O(n^2) | O(n^2) | ✅ |
| Space | O(1) | O(1) | ✅ |
피드백: 정렬 O(n log n) 이후 이중 루프와 투 포인터로 총 O(n^2) 시간으로 3합 탐색. 중복 제거를 잘 처리하고 있다.
개선 제안: 현재 구현이 적절해 보입니다.
Contributor
There was a problem hiding this comment.
아 이렇게 왼쪽에 포인터를 두고 오른쪽으로 이동하면서
오른쪽에 위치한 부분배열의 left/right 포인터로 접근하는 방법도 있겠네요
Member
Author
|
@njngwn 님, 리뷰 안 해주셔서 셀프 승인합니다용~ @DaleStudy 승인 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!